package TwT2;

public abstract class Memory {

    private String Name;
    private String volume;
    private double price;

    public Memory(){}
    public Memory(String Name,String volume,double price){
        this.Name = Name;
        this.volume = volume;
        this.price = price;
    }

    String getName(){
        return this.Name;
    }
    String getVolume(){
        return this.volume;
    }
    double getPrice(){
        return this.price;
    }

    void work(){
        System.out.println(this.Name + "+work");
    }

    public void Display(){
        System.out.println("Name:" + this.Name);
        System.out.println("volume:" + this.volume);
        System.out.println("price:" + this.price);
    }

    public static void main(String[] args) {
        Samsung DDR4_2666 = new Samsung("DDR4_2666","16G",1200);
        DDR4_2666.Display();
        DDR4_2666.work();
        Kingston Predator= new Kingston("Predator","32G",1300);
        Predator.Display();
        Predator.work();
    }
}
